Native Methods:
An Example
A UNIX-specific class that
supports chmod
class UNIXCalls {
  public native static int
    chmod(String path, int mode);
  ...
}
e.g., to set the private mail
file permission
UNIXCalls.chmod("/home/sl/mbox", 0600);

Return to Tracks